import request from '@/utils/request'
const url = '/supervise/getUserInfo'

/**
 * 1. userType
 * 2. userId
 * 3. userName
 * 4. province
 * 5. city
 * 6. pageSize
 * 7. pageIndex
 */
export function reqBasePatient() {
  var params = {
    userType: 'PATIENT'
  }
  return req(params)
}

export function reqBaseDoctor() {
  var params = {
    userType: 'DOCTOR'
  }
  return req(params)
}

export function req(params) {
  return request({
    url,
    method: 'post',
    data: params,
    headers: {
      'Content-Type': 'application/json'
    }
  })
}
